function NARX_explanation(outputSetting,param)
%{
用于补充训练结果所使用的训练参数。
目前有个bug是输入的+号不会显示。
%}
%% 手动设置输入序列和输出序列的名称
inputSeries='马口Q和Z和三灶Z';
TargetSeries='甘竹、竹银、灯笼山的Z';
notes=strcat('试着根据pacf的指导设置输入延迟和反馈延迟\n',...
    ''...
    );  %可以在这里写本次训练的备注

%% 函数主体
splitLine='%% ———————————————————————— %%\n';  %分割线
timeNow=string(datetime('now'));  %输出当前时间

currentPath=cd;
if outputSetting.outputPath=="DefaultPath"
    today=string(datetime('today'));
    folderName=strcat('\result\',today,'\NARX\');   %设置输出文件夹名称为日期
    currentPath=strcat(currentPath,folderName);
else
    currentPath=strcat(currentPath,'\result\',outputSetting.outputPath,'\NARX\');
end
if ~exist(currentPath,'file')   %如果目录下不存在今日文件夹则创建今日文件夹
    mkdir(currentPath)
end
fid=fopen(strcat(currentPath,'paramExplanation.txt'),'a');  %打开或创建说明文件，并补充内容到文件末尾

fprintf(fid,'Time:%s\n',timeNow);
if length(notes)>1
    fprintf(fid,'Notes:%s\n',notes);
end
fprintf(fid,splitLine);
for i=1:param.trainCount
    fprintf(fid,'Train Count:        %u\n \n',i);
    fprintf(fid,'Input Series:       %s\n',inputSeries);
    fprintf(fid,'Target Series:      %s\n',TargetSeries);
    if outputSetting.isDate==1
        fprintf(fid,'Train Begin:        %u.%u.%u   %u:%u:%u\n',param.trainBegin{i});
        fprintf(fid,'Train end:          %u.%u.%u   %u:%u:%u',param.trainEnd{i});
        fprintf(fid,'\n');
        fprintf(fid,'Predict Begin:      %u.%u.%u   %u:%u:%u\n',param.predictBegin{i});
        fprintf(fid,'Predict end:        %u.%u.%u   %u:%u:%u\n',param.predictEnd{i});
    else
        fprintf(fid,'Train Begin:        %u\n',param.trainBegin{i});
        fprintf(fid,'Train end:          %u\n',param.trainEnd{i});
        fprintf(fid,'Predict Begin:      %u\n',param.predictBegin{i});
        fprintf(fid,'Predict end:        %u\n',param.predictBegin{i});
    end
    fprintf(fid,'Input Delays:       %i:%i\n',min(param.inputDelays{i}),max(param.inputDelays{i}));
    fprintf(fid,'Feedback Delays:    %i:%i\n',min(param.feedbackDelays{i}),max(param.feedbackDelays{i}));
    fprintf(fid,'Hidden Layer Sizes: %i\n',param.hiddenLayerSize{i});
    fprintf(fid,splitLine);
end
fclose(fid);
end